class User < ActiveRecord::Base
    validates_presence_of :username, :password, :role
    validates_numericality_of :role
  
    #has_one :role
    
    protected
    	def self.find_all_users
    		find(:all, :order => "username")
    	end

end
